function loadAjax(params,type,option){
    var _option = {
        beforeSend:function(){},
        success:function(){}
    }
    $.extend(_option,option);
    $.ajax({
        type:'post',
        url:'/load-ajax/',
        data:params,
        dataType:type,
        beforeSend:function(){
            _option.beforeSend();
        },
        success:function(result){
            _option.success(result);
        }
    })
}
function isemail(email) {
	var re = /^(\w|[^_]\.[^_]|[\-])+(([^_])(\@){1}([^_]))(([a-z]|[\d]|[_]|[\-])+|([^_]\.[^_])*)+\.[a-z]{2,3}$/i
	return re.test(email);
}
$(document).ready(function(){
   $('.head_nav').click(function(){
      if($(this).hasClass('head_nav_hover')) {
         $(this).removeClass('head_nav_hover');
      }else {
         $(this).addClass('head_nav_hover');
      }
   });
});